package cn.dw.dao;

import java.io.Serializable;
import java.util.List;
import org.hibernate.criterion.DetachedCriteria;

import cn.dw.domain.DutyInfo;
import cn.dw.domain.People;

public abstract interface BaseDao<T>
{
  public abstract void save(T paramT);
  
  public abstract void saveOrUpdate(T paramT);
  
  public abstract void delete(T paramT);
  
  public abstract void delete(Serializable paramSerializable);
  
  public abstract void update(T paramT);
  
  public abstract T getById(Serializable paramSerializable);
  
  public abstract Integer getCount();
  
  public abstract List<T> getAll();
  
  public abstract List<T> getByPage(int paramInt1, int paramInt2);
  
  public abstract List<T> getByConditions(DetachedCriteria paramDetachedCriteria);
  
  public abstract List<T> getByPointId(Serializable paramSerializable);
  
  public abstract List<T> getByObjectId(Object id,Object column);
  
  public abstract boolean getByOpenId(String paramString);
  
  public abstract void Insert(String paramString);
  
  public abstract DutyInfo getByPeople(People paramPeople);
}
